package demo7;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Animal animal1=new Animal("aaa");
        Animal animal2=(Animal) animal1.clone();
        System.out.println(animal1==animal2);
        System.out.println(animal1.name==animal2.name);
    }
}
